dataset = []
with open('Groceries.csv') as f:
    f_csv = csv.reader(f)
    for index, val in enumerate(f_csv):
        # print(index,val)
        for item in val:
            goodsList = str(item).replace('}', '').replace('{', '').split(',')
            # print(str(type(goodsList)))
            dataset.append(list(goodsList))
        # print(goodsList)
        if index == 1000:
            print(dataset)
            break